package cn.bxshey.daoModule.mapper;

import cn.bxshey.dtoModule.goods.SelectPageDTO;
import cn.bxshey.entityModule.entity.Goods;
import cn.bxshey.voModule.goods.DetailVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
 * 商品(Goods)表数据库访问层
 *
 * @作者：不想说话而已
 * @Date：2024/3/9 18:46
 */
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {

   //根据id查询
   DetailVO selectById(Long id);

   //分页查询
   List<DetailVO> selectPage(SelectPageDTO dto);
}

